package yuqueHandler

import "strings"

// <ol> / <ul> 标签
type OlUlHandler struct {
	SuperHandler
}

func (thisReceiver *OlUlHandler) preHandle() {
	nodeData := thisReceiver.Node.Data
	if strings.Compare("ol", nodeData) == 0 {
		thisReceiver.isOlTag = true
		thisReceiver.olIdx = 1
	}
}

func (thisReceiver *OlUlHandler) postHandle() {
	thisReceiver.isOlTag = false
}
